<div class="page-products stock-product">
	
    <div class="product-header clearfix">
		<i class="icon icon-back" ng-click="back()"></i>
        入库单
        <i class="stock-icon icon-add" ng-click="jump('usercenter/manager/addin')"></i>
	</div>

	<div class="order-header manager-tab clearfix">
		<a href="javascript:void(0);" ng-click="switchTab('op')" class="order-tab-title" ng-class="{'selected':selection.tab == 'op'}">待完成</a>
		<a href="javascript:void(0);" ng-click="switchTab('cancel')" class="order-tab-title" ng-class="{'selected':selection.tab == 'cancel'}">已作废</a>
		<a href="javascript:void(0);" ng-click="switchTab('all')" class="order-tab-title" ng-class="{'selected':selection.tab == 'all'}">全部</a>
		<a href="javascript:void(0);" ng-click="switchTab('search')" class="order-tab-title" ng-class="{'selected':selection.tab == 'search'}">筛选</a>
	</div>
   
	<!--待完成--> 
    <div class="orderlist-wrap" style="padding-top:50px;">	

		<div class="monitor-win"  ng-repeat="send in inList[selection.tab]">
			<p>
				<span style="position:absolute;right:6%;">
					<a style="margin:2px 2px;" class="receive-btn" href="javascript:void(0);" ng-click="">完成</a>
					<a style="margin:2px 2px;" class="destory-btn" href="javascript:void(0);"  ng-click="">作废</a>
           		</span>
			</p>
			<table class="tab_table" style="clear:both;" ng-click="jump('usercenter/manager/indetail')">
				<tr>
					<td class="t_title">入库单号：</td>
					<td colspan="3">{{send.in_id}}</td>
				</tr>
				<tr>
					<td class="t_title">相关单据：</td>
					<td colspan="3">{{send.refer_type}}（{{send.refer_id}}）</td>
				</tr>
				<tr>
					<td class="t_title" style="vertical-align:top;">入库仓库：</td>
					<td colspan="3">{{send.warehouse_name}}</td>
				</tr>
                <tr>
					<td class="t_title" style="vertical-align:top;">操作人：</td>
					<td colspan="3">{{send.username}}</td>
				</tr>		
				<tr>
					<td class="t_title">采购金额：</td>
					<td>￥{{send.buy_money}}元</td>
					<td class="t_title">出库状态：</td>
					<td>{{send.status_name}}</td>
				</tr>
				<tr>
					<td class="t_title">入库时间：</td>
					<td>{{send.in_date}}</td>
                    <td class="t_title">创建时间：</td>
					<td>{{send.date_added}}</td>
				</tr> 
			</table>
    	</div>
    	<div class="no-orders" ng-if="!inList[selection.tab] || inList[selection.tab].length<1">没有查询到任何单据...</div>
		<div class="loading" id="LoadingPlace"></div>
    
    </div>
    <!--待完成-->
    
    <!--已作废-->
<!--     <div class="orderlist-wrap" style="padding-top:50px;" ng-if="selection.tab == 2">	
		
        <div class="monitor-win">
			<p>
				<span style="position:absolute;right:6%;">
					<a style="margin:2px 2px;" class="receive-btn" href="javascript:void(0);" ng-click="">解除作废</a>
           		</span>
			</p>
            <table class="tab_table" style="clear:both;" ng-click="jump('usercenter/manager/indetail')">
				<tr>
					<td class="t_title">入库单号：</td>
					<td colspan="3">781</td>
				</tr>
				<tr>
					<td class="t_title">相关单据：</td>
					<td colspan="3">订单(300)</td>
				</tr>
				<tr>
					<td class="t_title" style="vertical-align:top;">入库仓库：</td>
					<td colspan="3">无锡总仓</td>
				</tr>
                <tr>
					<td class="t_title" style="vertical-align:top;">操作人：</td>
					<td colspan="3">shenxianju</td>
				</tr>		
				<tr>
					<td class="t_title">采购金额：</td>
					<td>￥79.80 元</td>
					<td class="t_title">出库状态：</td>
					<td>作废</td>
				</tr>
				<tr>
					<td class="t_title">入库时间：</td>
					<td>2017-09-22 11:54:25</td>
                    <td class="t_title">创建时间：</td>
					<td>2017-09-22 11:46:10</td>
				</tr> 
			</table>
    	</div>
    
    </div> -->
    <!--已作废-->
    
    <!--全部-->
  <!--   <div class="orderlist-wrap" style="padding-top:50px;" ng-if="selection.tab == 3">	
    	
        <div class="monitor-win">
			<p>
				<span style="position:absolute;right:6%;">
					<a style="margin:2px 2px;" class="receive-btn" href="javascript:void(0);" ng-click="">完成</a>
					<a style="margin:2px 2px;" class="destory-btn" href="javascript:void(0);"  ng-click="">作废</a>
           		</span>
			</p>
            <table class="tab_table" style="clear:both;" ng-click="jump('usercenter/manager/indetail')">
				<tr>
					<td class="t_title">入库单号：</td>
					<td colspan="3">781</td>
				</tr>
				<tr>
					<td class="t_title">相关单据：</td>
					<td colspan="3">订单(300)</td>
				</tr>
				<tr>
					<td class="t_title" style="vertical-align:top;">入库仓库：</td>
					<td colspan="3">无锡总仓</td>
				</tr>
                <tr>
					<td class="t_title" style="vertical-align:top;">操作人：</td>
					<td colspan="3">shenxianju</td>
				</tr>		
				<tr>
					<td class="t_title">采购金额：</td>
					<td>￥79.80 元</td>
					<td class="t_title">出库状态：</td>
					<td>初始</td>
				</tr>
				<tr>
					<td class="t_title">入库时间：</td>
					<td>2017-09-22 11:54:25</td>
                    <td class="t_title">创建时间：</td>
					<td>2017-09-22 11:46:10</td>
				</tr> 
			</table>
    	</div>

		<div class="monitor-win">
			<p>
				<span style="position:absolute;right:6%;">
					<a style="margin:2px 2px;" class="receive-btn" href="javascript:void(0);" ng-click="">完成</a>
					<a style="margin:2px 2px;" class="destory-btn" href="javascript:void(0);"  ng-click="">作废</a>
           		</span>
			</p>
            <table class="tab_table" style="clear:both;" ng-click="jump('usercenter/manager/indetail')">
				<tr>
					<td class="t_title">入库单号：</td>
					<td colspan="3">780</td>
				</tr>
				<tr>
					<td class="t_title">相关单据：</td>
					<td colspan="3">退货单(200)</td>
				</tr>
				<tr>
					<td class="t_title" style="vertical-align:top;">入库仓库：</td>
					<td colspan="3">无锡总仓</td>
				</tr>
                <tr>
					<td class="t_title" style="vertical-align:top;">操作人：</td>
					<td colspan="3">shenxianju</td>
				</tr>		
				<tr>
					<td class="t_title">采购金额：</td>
					<td>￥79.80 元</td>
					<td class="t_title">出库状态：</td>
					<td>初始</td>
				</tr>
				<tr>
					<td class="t_title">入库时间：</td>
					<td>2017-09-22 11:54:25</td>
                    <td class="t_title">创建时间：</td>
					<td>2017-09-22 11:46:10</td>
				</tr> 
			</table>
    	</div>
        
        <div class="monitor-win">
			<p>
				<span style="position:absolute;right:6%;">
					<a style="margin:2px 2px;" class="receive-btn" href="javascript:void(0);" ng-click="">解除作废</a>
           		</span>
			</p>
            <table class="tab_table" style="clear:both;" ng-click="jump('usercenter/manager/indetail')">
				<tr>
					<td class="t_title">入库单号：</td>
					<td colspan="3">781</td>
				</tr>
				<tr>
					<td class="t_title">相关单据：</td>
					<td colspan="3">订单(300)</td>
				</tr>
				<tr>
					<td class="t_title" style="vertical-align:top;">入库仓库：</td>
					<td colspan="3">无锡总仓</td>
				</tr>
                <tr>
					<td class="t_title" style="vertical-align:top;">操作人：</td>
					<td colspan="3">shenxianju</td>
				</tr>		
				<tr>
					<td class="t_title">采购金额：</td>
					<td>￥79.80 元</td>
					<td class="t_title">出库状态：</td>
					<td>作废</td>
				</tr>
				<tr>
					<td class="t_title">入库时间：</td>
					<td>2017-09-22 11:54:25</td>
                    <td class="t_title">创建时间：</td>
					<td>2017-09-22 11:46:10</td>
				</tr> 
			</table>
    	</div>
        
    </div> -->
    <!--全部-->
    
    
    <!--筛选-->
	<div class="filter-panel" ng-class="{'show':showSearchFlag}">
		<div class="top-bar clearfix">
			<span class="text">筛选</span>
			<a class="btn-filter search-stock-btn" href="javascript:void(0);" ng-click="SearchIn()">确定</a>
		</div>
        <div style="padding:20px;">  
            <table class="tab_table search_table" style="clear:both;">
            	<tr>
                    <td class="t_title_long">入库单号：</td>
                    <td>
                        <input type="text" id="in_id" value="" />
                    </td>
                </tr>
                <tr>
                    <td class="t_title_long">相关单据类型：</td>
                    <td>
                        <select name="refer_type_id" id="refer_type_id">
                            <option value="1">订单</option>
                            <option value="2">采购单</option>
                            <option value="3">退货单</option>
                            <option value="4">调拨单</option>
                            <option value="5">其他</option>
                            <option value="6">借货单</option>
                            <option value="*" selected="selected">全部</option>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td class="t_title_long">开始时间：</td>
                    <td>
                        <input class="date" type="date" id="start_date" value="" />
                    </td>
                </tr>
                <tr>
                    <td class="t_title_long">结束时间：</td>
                    <td>
                        <input class="date" type="date" id="end_date" value="" />
                    </td>
                </tr>
                <tr>
                    <td class="t_title_long">状态：</td>
                    <td>
                       <select  id="status">
                            <option value="0">作废</option>
                            <option value="1">初始</option>
                            <option value="2">完成</option>
                            <option value="3">已派送</option>
                            <option value="4">已签收</option>
                            <option value="*" selected="selected">全部</option>
                        </select>
                    </td>
                </tr>
            </table>
    	</div>        
	</div>
    <div class="cover" ng-if="showSearchFlag" ng-click="closeSearch()"></div>
    <!--筛选-->
	
</div>